import service from './service';

/**
 * 编码服务
 * @param url 请求地址
 * @param systemid 项目的systemid
 * @param pname 编码规则
 * @param setinfo 编码前缀
 * @example const res = await doc_code(url,systemid,pname,setinfo);
 */
export default function doc_code(url: string, systemid: string, pname: string, setinfo: string) {
	const msg = {
		pname,
		setinfo,
		systemid
	};
	return service(url, 'dataservice.finddoccode', msg);
}
